package com.chb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description:
 * @author: CHB
 * @create: 2021-11-22 15:48
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("ttt")
public class Ttt {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer age;
    private String name;

    public Ttt(Integer age, String name){
        this.age = age;
        this.name = name;
    }
}
